Skip to content

giving time for the device to be discovered after burning fw #13961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

remibettan
Copy link
Contributor

Tracked by: RSDSO-20159

@@ -242,6 +242,20 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
time.sleep(3) # MIPI devices do not re-enumerate so we need to give them some time to restart
devices.query( monitor_changes = False )
sn_list = devices.all()
sn_list_size = len(sn_list)
if sn_list_size == 0:
retries = 10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30 seconds timeout is too long IMO.
Maybe we can do 5x2 sec?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is 3 seconds at each iteration, and it usually succeeds at the third iteration.
30 seconds is only the worst case - I agree it should not occur...
So you mean 5 iterations of 2 seconds each - OK.

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -242,6 +244,20 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
time.sleep(3) # MIPI devices do not re-enumerate so we need to give them some time to restart
devices.query( monitor_changes = False )
sn_list = devices.all()
sn_list_size = len(sn_list)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to do it in the rs-fw-update tool like we do on usb?
And print the new device version ?

@remibettan remibettan force-pushed the fixing-custom-d400-fw-python-test branch 3 times, most recently from b14b767 to c0a5a26 Compare April 28, 2025 13:24
@remibettan remibettan force-pushed the fixing-custom-d400-fw-python-test branch from 1386509 to da6881b Compare April 29, 2025 07:37
@@ -31,6 +31,14 @@

using rsutils::json;

std::condition_variable cv;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason to move from main to global?
access from any place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes - especially from the code that I have moved from main to private methods

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@remibettan remibettan merged commit 684cf10 into IntelRealSense:development Apr 29, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants